package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 角色实体类
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "role_info")
public class RoleEntity extends BaseEntity {

    @TableId(value = "roleId", type = IdType.INPUT)
    private String roleId;
    @TableField(value = "departmentId")
    private String departmentId;
    @TableField(value = "roleName")
    private String roleName;
    @TableField(value = "roleDesc")
    private String roleDesc;
    @TableField(value = "createTime")
    private String createTime;
    @TableField(value = "isUsed")
    private int isUsed;


    public String getRoleId () {
        return roleId;
    }

    public void setRoleId (String roleId) {
        this.roleId = roleId;
    }


    public String getDepartmentId () {
        return departmentId;
    }

    public void setDepartmentId (String departmentId) {
        this.departmentId = departmentId;
    }


    public String getRoleName () {
        return roleName;
    }

    public void setRoleName (String roleName) {
        this.roleName = roleName;
    }


    public String getRoleDesc () {
        return roleDesc;
    }

    public void setRoleDesc (String roleDesc) {
        this.roleDesc = roleDesc;
    }


    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }


    public long getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }
}
